﻿// // ******************************************************************
// //       /\ /|       @file       CacheDataCommandHandler copy.cs
// //       \ V/        @brief      await29
// //       | "")       @author     Await, 285283010@qq.com
// //       /  |
// //      /  \\        @Modified   2025-02-04 19:02
// //    *(__\_\        @Copyright  Copyright (c) , 2025-02-04 14:02 Await
// // ******************************************************************

using AutomaticSubtitles.Service.Application.Cahce.Commands;

namespace AutomaticSubtitles.Service.Application.Cahce;

public class CacheDataCommandHandler(RedisClient _redisClient) : BaseAutoService
{
    [EventHandler]
    public async Task Handle(UpdateCacheDataCommand command)
    {
        var publishAsync = await _redisClient.PublishAsync(command.name, command.name);
        command.Result = "提交更新成功！";
    }
}